// 容器类
export const containers = [
  // 左右布局
  {
    type: 'left-right',
    alias: 'left-right',  //组件别名，可以自定义
    category: 'container',
    icon: 'column-2-grid',
    commonFlag: true,
    cols: [],
    options: {
      name: '',
      hidden: false,
      cellHeight: '100%',
      customClass: '',  //自定义css类名
      dragAround: false, //是否可以拖拽
      comStyle: {}
    }
  },
  // 单列栅格
  {
    type: 'grid',
    alias: 'column-1-grid',  //组件别名，可以自定义
    category: 'container',
    icon: 'column-1-grid',
    commonFlag: true,
    cols: [],
    options: {
      name: '',
      hidden: false,
      gutter: 12,
      justify: 'start',
      colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
      customClass: '',  //自定义css类名
      alignClass: '', // 对齐方式类名
    }
  },
  // 双列栅格
  {
    type: 'grid',
    alias: 'column-2-grid',  //组件别名，可以自定义
    category: 'container',
    icon: 'column-2-grid',
    commonFlag: true,
    cols: [],
    options: {
      name: '',
      hidden: false,
      gutter: 12,
      justify: 'start',
      colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
      customClass: '',  //自定义css类名
      alignClass: '', // 对齐方式类名
    }
  },
  // 三列栅格
  {
    type: 'grid',
    alias: 'column-3-grid',  //组件别名，可以自定义
    category: 'container',
    icon: 'column-3-grid',
    commonFlag: true,
    cols: [],
    options: {
      name: '',
      hidden: false,
      gutter: 12,
      justify: 'start',
      colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
      customClass: '',  //自定义css类名
      alignClass: '', // 对齐方式类名
    }
  },
  // 四列栅格
  {
    type: 'grid',
    alias: 'column-4-grid',  //组件别名，可以自定义
    category: 'container',
    icon: 'column-4-grid',
    commonFlag: true,
    cols: [],
    options: {
      name: '',
      hidden: false,
      gutter: 12,
      justify: 'start',
      colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
      customClass: '',  //自定义css类名
      alignClass: '', // 对齐方式类名
    }
  },
  // 表格
  {
    type: 'table',
    category: 'container',
    icon: 'table',
    rows: [],
    options: {
      name: '',
      hidden: false,
      comStyle: {},
      customClass: '',  //自定义css类名
    }
  },
  // 单行子表单
  {
    type: 'sub-form',
    category: 'container',
    icon: 'sub-form',
    commonFlag: true,
    widgetList: [],
    widgetFooterList: [],
    options: {
      name: '',
      label: '',
      aliasName: '', //配置组件别名
      showBlankRow: true,
      showNumColumn: true, // 是否显示序号列
      numColumnWidth: "50px", // 序号列宽度
      isAutoSort: true, // 是否开启自动排序
      // showRowNumber: true,
      labelAlign: 'label-center-align',
      hidden: false,
      disabled: false,
      subAutoSort: '',
      subAutoSortCode: {},
      // actionColumnPosition: 'left',  //操作按钮列位置
      appendButtonAtBottom: false,  //添加按钮显示在底部
      customClass: '',  //自定义css类名
      onCreated: '',
      onMounted: '',
      onSubFormRowAdd: '',
      onSubFormRowInsert: '',
      onSubFormRowDelete: '',
      onSubFormRowChange: '',
      isRowWidth100: false, // 是否开启行宽100%      
      height: '', //固定高度
      showPagination: false, // 是否显示分页
      pagination: { // 分页信息
        //currentPage: 1,
        pageSizes: [5, 10, 15, 20, 30, 50],
        pageSize: 10,
      },
      isBatchPadding: false, //批量添加数据
      isSubFormFooterRow: false, //是否开启合计行
      subFormFooterRowTitle: "合计", //合计行名称
      isHideActionBar: false, //是否隐藏操作栏
      // uploadTemplate: [], // 上传模板
      morePermissions: {
        handleAdd: true, // 新建
        handleCopy: true, // 复制
        handleDeleteAll: true, // 删除
        handleDeleteRow: true, // 删除全部
        handleExport: true, // 导入数据
        handleImport: true, // 导出数据
      },
    }
  },
  // 多行子表单
  {
    type: 'grid-sub-form',
    category: 'container',
    icon: 'grid-sub-form',
    commonFlag: true,
    widgetList: [],
    options: {
      name: '',
      label: '',
      aliasName: '', //配置组件别名
      showBlankRow: true,
      // showRowNumber: true,
      hidden: false,
      disabled: false,
      // actionColumnPosition: 'left',  //操作按钮列位置
      appendButtonAtBottom: false,  //添加按钮显示在底部
      deleteButtonHidden: false,  //删除按钮默认隐藏
      comStyle: {},
      showNumColumn: true, // 是否显示序号列
      // numColumnWidth: "50px", // 序号列宽度
      // isAutoSort: true, // 是否开启自动排序
      // subAutoSort: '', // 自动排序字段
      // subAutoSortCode: {}, // 自动排序字段code
      // isRowWidth100: false, // 是否开启行宽100%
      height: '', //固定高度
      showPagination: false, // 是否显示分页
      pagination: { // 分页信息
        //currentPage: 1,
        pageSizes: [5, 10, 15, 20, 30, 50],
        pageSize: 10,
      },
      customClass: '',  //自定义css类名
      onCreated: '',
      onMounted: '',
      onSubFormRowAdd: '',
      onSubFormRowInsert: '',
      onSubFormRowDelete: '',
      onSubFormRowChange: '',
      // isBatchPadding: false, //批量添加数据
      isHideActionBar: false, //是否隐藏操作栏
      morePermissions: {
        handleAdd: true, // 新建
        handleCopy: true, // 复制
        handleDeleteAll: true, // 删除
        handleDeleteRow: true, // 删除全部
        handleExport: true, // 导入数据
        handleImport: true, // 导出数据
      },
    }
  },
  // 标签页
  {
    type: 'tab',
    category: 'container',
    icon: 'tab',
    commonFlag: true,
    //displayType: 'border-card',
    tabs: [],
    options: {
      name: '',
      tabType: 'border-card',
      tabPosition: 'top',
      hidden: false,
      customClass: '',  //自定义css类名
      onTabClick: '',  //tab被选中时触发
      comStyle: {},
    }
  },

  {
    type: 'grid-col-noOptions',
    category: 'container',
    icon: 'grid-col',
    internal: true,
    widgetList: [],
    options: {
      name: '',
      hidden: false,
      span: 12,
      offset: 0,
      push: 0,
      pull: 0,
      responsive: false,  //是否开启响应式布局
      md: 12,
      sm: 12,
      xs: 24,
      customClass: '',  //自定义css类名
    }
  },
  // 数据表格
  {
    type: 'data-table',
    category: 'container',
    icon: 'data-table',
    widgetList: [],
    options: {
      name: '',
      label: 'data-table',
      hidden: false,
      rowSpacing: 8,
      tableHeight: '300px', //高度，百分比或像素
      tableWidth: '100%', //宽度，百分比或像素宽度
      customClass: '', //自定义css样式
      stripe: true, // 是否斑马线
      showIndex: false, // 是否显示行号列
      showCheckBox: true, // 是否显示复选框列
      showPagination: true, // 是否分页
      paginationAlign: 'left',
      smallPagination: false, //是否显示小型分页
      showSummary: false, // 是否合计
      border: true, // 是否带有纵向边框（拖拽）
      tableSize: 'default', // 表格大小，large大、default中、small小
      autoColumnWidthDisabled: false,
      columnWordWrap: false,  //列内容超出列宽自动换行
      tableColumns: [ //表格列信息
        { columnId: 1, prop: 'name', label: '姓名', width: '100', show: true, align: 'left', fixed: 'left', sortable: true },
        { columnId: 2, prop: 'date', label: '日期1', width: '160', show: true, align: 'left', formatS: 'd1' },
        { columnId: 3, prop: 'date2', label: '日期2', width: '160', show: true, align: 'left', formatS: 'd4' },
        { columnId: 4, prop: 'date3', label: '日期3', width: '160', show: true, align: 'left', formatS: 'd5' },
        { columnId: 5, prop: 'f1', label: '基金', width: '150', show: true, align: 'right', sortable: true, formatS: 'n1' },
        { columnId: 6, prop: 'f2', label: '股票', width: '150', show: true, align: 'right', sortable: true, formatS: 'n2' },
        { columnId: 7, prop: 'f3', label: '存款', width: '150', show: true, align: 'right', sortable: true, formatS: 'n3' },
        { columnId: 8, prop: 'f4', label: '基金2', width: '150', show: true, align: 'right', sortable: true, formatS: 'n4' },
        { columnId: 9, prop: 'f5', label: '股票2', width: '150', show: true, align: 'right', sortable: true, formatS: 'n5' },
        { columnId: 10, prop: 'f6', label: '存款2', width: '150', show: true, align: 'right', sortable: true, formatS: 'n6' },
        { columnId: 11, prop: 'f7', label: '成功率', width: '140', show: true, align: 'right', sortable: true, formatS: 'n7' },
        { columnId: 12, prop: 'add', label: '地址', width: '250', show: true, render: '' },
        { columnId: 13, prop: 'ss', label: '秘密', width: '100', show: false },
        {
          columnId: 14, prop: '~', headerFlag: true, label: '表头1', align: 'center', children: [
            {
              columnId: 15,
              prop: '~',
              headerFlag: true,
              label: '表头2',
              align: 'center',
              children: [
                {
                  columnId: 16,
                  prop: '~',
                  headerFlag: true,
                  label: '表头3',
                  align: 'center',
                  children: [

                  ]
                }
              ]
            }
          ]
        },
      ],
      showButtonsColumn: false, // 是否显示操作列
      buttonsColumnFixed: 'right',
      buttonsColumnTitle: '操作',
      buttonsColumnWidth: 120,
      operationButtons: [{ // 操作按钮配置
        name: 'detail',
        label: '详情',
        type: 'text',
        size: 'small',
        round: false,
        hidden: true,
        disabled: false,
      }, {
        name: 'edit',
        label: '编辑',
        type: 'text',
        size: 'small',
        round: false,
        hidden: false,
        disabled: false,
      }, {
        name: 'delete',
        label: '删除',
        type: 'text',
        size: 'small',
        round: false,
        hidden: false,
        disabled: false,
      },
      ],
      pagination: { // 分页信息
        currentPage: 1,
        pageSizes: [10, 15, 20, 30, 50, 100, 200],
        pageSize: 20,
        total: 366,
      },
      dsEnabled: false, //是否使用数据源数据
      dsName: '',  //数据源名称
      dataSetName: '',  //数据集名称
      treeDataEnabled: false,  //是否允许加载树形数据
      rowKey: 'id',  //树形数据数据row-key
      childrenKey: 'children',  //树形数据children
      tableData: [ //表格数据
        {
          date: '2016-05-02',
          date2: '2016-05-02 23:12:12',
          date3: '2016-05-02 9:11:12',
          name: '小二',
          f1: 10001000.2,
          f2: 10001000.239567,
          f3: 10001000.239567,
          f4: 10001000.239567,
          f5: 10001000.239567,
          f6: 10001000.239567,
          f7: 0.25,
          add: '上海市普陀区金沙江路 1518 弄',
          ss: 100,
        }, {
          date: '2016-05-04',
          date2: '2016-05-02 11:12:12',
          date3: '2016-05-02 9:11:12',
          name: '王小虎2',
          f1: 10001000.23,
          f2: 10001000.23,
          f3: 10001000.239567,
          f4: 10001000.239567,
          f5: 10001000.239567,
          f6: 10001000.239567,
          f7: 0.256,
          add: '上海市普陀区金沙江路 1518 弄',
          ss: 100,
        }, {
          date: '2016-05-01',
          date2: '2016-05-02 12:12:12',
          date3: '2016-05-02 9:11:12',
          name: '王小虎3',
          f1: 10001000.239,
          f2: 10001000.239,
          f3: 10001000.239567,
          f4: 10001000.239567,
          f5: 10001000.239567,
          f6: 10001000.239567,
          f7: 0.2569,
          add: '上海市普陀区金沙江路 1518 弄',
          ss: 100,
        }, {
          date: '2016-05-03',
          date2: '2016-05-02 12:12:12',
          date3: '2016-05-02 9:11:12',
          name: '王小虎4',
          f1: 10001000.239567,
          f2: 10001000.239567,
          f3: 10001000.239567,
          f4: 10001000.239567,
          f5: 10001000.239567,
          f6: 10001000.239567,
          f7: 1.9527102,
          add: '上海市普陀区金沙江路 1518 弄',
          ss: 100,
        },
      ],

      onCreated: '',
      onMounted: '',
      //分页大小改变事件
      onPageSizeChange: '',
      //当前页改变事件
      onCurrentPageChange: '',
      //列排序改变事件（必须设置为后端排序才生效）
      onSortChange: '',
      //选择项改变事件
      onSelectionChange: '',

      //设置操作按钮是否隐藏回调事件（必须有返回值）
      onHideOperationButton: '',
      //设置操作按钮是否禁用回调事件（必须有返回值）
      onDisableOperationButton: '',
      //设置操作按钮文本回调事件（必须有返回值）
      onGetOperationButtonLabel: '',
      //操作按钮点击事件
      onOperationButtonClick: '',

      onHeaderClick: '',
      onRowClick: '',
      onRowDoubleClick: '',
      onCellClick: '',
      onCellDoubleClick: '',

      //获取行样式名称事件
      onGetRowClassName: '',
      //合并行、列事件
      onGetSpanMethod: '',
    }
  },
  // 对象容器
  {
    type: 'object-group',
    category: 'container',
    icon: 'object-group',
    widgetList: [],
    options: {
      name: '',
      objectName: 'testObj',
      hidden: false,
      customClass: '',
      onCreated: '',
      onMounted: '',
    }
  },
  // 弹出窗口
  {
    type: 'vf-dialog',
    category: 'container',
    icon: 'vf-dialog',
    widgetList: [],
    options: {
      name: '',
      title: '',
      width: '50%',
      fullscreen: false,
      showModal: true,
      showClose: true,
      closeOnClickModal: false,
      closeOnPressEscape: false,
      center: false,
      readMode: false,
      disabledMode: false,
      okButtonLabel: '',
      okButtonHidden: false,
      cancelButtonLabel: '',
      cancelButtonHidden: false,
      onOkButtonClick: '',
      onCancelButtonClick: '',
      onDialogOpened: '',
      onDialogBeforeClose: '',
    }
  },
  // 侧滑抽屉
  {
    type: 'vf-drawer',
    category: 'container',
    icon: 'vf-drawer',
    widgetList: [],
    options: {
      name: '',
      title: '',
      size: '50%',
      showModal: true,
      showClose: true,
      closeOnClickModal: false,
      closeOnPressEscape: false,
      direction: 'rtl',
      readMode: false,
      disabledMode: false,
      okButtonLabel: '',
      okButtonHidden: false,
      cancelButtonLabel: '',
      cancelButtonHidden: false,
      onOkButtonClick: '',
      onCancelButtonClick: '',
      onDrawerOpened: '',
      onDrawerBeforeClose: '',
    }
  },

  // 表格子表单
  {
    type: "table-sub-form",
    icon: "table-sub-form",
    category: "container",
    widgetList: [],
    options: {
      name: "",
      label: "",
      autoWidth: false,
      hidden: false,
      maxHeight: "auto",
      customClass: "",
      dragSort: false,
      showBlankRow: true,
      enableAdd: true,
      enableDelete: true,
      scrollbarAlways: false,
      placeholder: "暂无数据",
      showIndex: true,
      showSummary: false,  //显示合计
      inPagination: false,  //合计 是否统计其他页的数据

      showPagination: false,  //是否显示分页
      pagination: {  //分页信息
        currentPage: 1,
        pageSizes: [10, 15, 20, 30, 50, 100, 200],
        pageSize: 8,
        total: 0,
      },

      enableValidate: false,  //是否开启校验
      validateErrorMsg: "",
      validateArr: [],

      //---事件---
      onCreated: '',
      onMounted: '',
      onSubFormRowDragEnd: "",
      onSubFormRowAdd: "",
      onSubFormRowDelete: "",
      onSubFormRowChange: "",
    },
  },

  {
    type: 'grid-col',
    category: 'container',
    icon: 'grid-col',
    internal: true,
    widgetList: [],
    options: {
      comStyle: {},
      name: '',
      hidden: false,
      span: 12,
      offset: 0,
      push: 0,
      pull: 0,
      responsive: false,  //是否开启响应式布局
      md: 12,
      sm: 12,
      xs: 24,
      customClass: '',  //自定义css类名
    }
  },

  {
    type: 'table-cell',
    category: 'container',
    icon: 'table-cell',
    internal: true,
    widgetList: [],
    merged: false,
    options: {
      name: '',
      cellWidth: '',
      cellHeight: '',
      colspan: 1,
      rowspan: 1,
      wordBreak: false,  //是否自动换行
      customClass: '',  //自定义css类名
      comStyle: {}
    }
  },
  // 树形
  {
    type: 'tree',
    icon: 'tree',
    category: 'container',
    widgetList: [],
    options: {
      name: 'tree',
      label: '',
      filter: true,// 过滤框
      draggable: false,// 可拖拽
      defaultExpandAllNode: true,// 默认展开所有节点
      selectClearAllNode: true,// 显示展开/收缩所有节点功能
      expandRetractAllNode: true,// 显示展开/收缩所有节点功能
      showCheckBox: true,// 展示复选框
      expandOnClickNode: true,// 点击节点收缩
      lazy: false,// 懒加载
      treeDataEdit: true,// 编辑树节点数据
      checkStrictly: false,  //禁止父子节点选择联动
      nodeEdit: true,// 节点编辑
      size: 'default',
      disabled: false,
      hidden: false,
      dsEnabled: false, //是否使用数据源数据
      dsName: '',  //数据源名称
      dataSetName: '',  //数据集名称
      //-------------------
      customClass: '',  //自定义css类名
      //-------------------
      onCreated: '',
      onMounted: '',
      onNodeClick: '',
      onNodeCheck: '',
      onNodeContextmenu: '',
      onCheckChange: '',
      treeData: [
        {
          label: '一级 1',
          children: [{
            label: '二级 1-1',
            children: [{
              label: '三级 1-1-1'
            }]
          }]
        }, {
          label: '一级 2',
          children: [{
            label: '二级 2-1',
            children: [{
              label: '三级 2-1-1'
            }]
          }, {
            label: '二级 2-2',
            children: [{
              label: '三级 2-2-1'
            }]
          }]
        }, {
          label: '一级 3',
          children: [{
            label: '二级 3-1',
            children: [{
              label: '三级 3-1-1'
            }]
          }, {
            label: '二级 3-2',
            children: [{
              label: '三级 3-2-1'
            }]
          }]
        },
      ]
    }
  },
  // 按钮组
  {
    type: 'button-group', // 按钮组
    icon: 'button-group',
    category: 'container',
    widgetList: [],
    options: {
      name: '',
      size: 'default',
      hidden: false,
      disabled: false,
      customClass: '',
      buttons: [
        {
          name: 'detail',
          label: '详情',
          icon: '',
          type: '',
          round: false,
          hidden: true,
          disabled: false,
        }, {
          name: 'edit',
          label: '编辑',
          icon: '',
          type: '',
          round: false,
          hidden: false,
          disabled: false,
        }, {
          name: 'delete',
          label: '删除',
          icon: '',
          type: '',
          round: false,
          hidden: false,
          disabled: false,
        },
      ],
      onCreated: '',
      onMounted: '',
      onButtonGroupClick: '',
      comStyle: {}
    }
  },

  {
    type: 'tab-pane',
    category: 'container',
    icon: 'tab-pane',
    internal: true,
    widgetList: [],
    options: {
      name: '',
      label: '',
      hidden: false,
      active: false,
      disabled: false,
      customClass: '',  //自定义css类名
    }
  },

]
// 基础类
export const basicFields = [
  {
    type: 'static-text',
    icon: 'static-text',
    formItemFlag: false,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      columnWidth: '200px',
      columnMinWidth: '200px',
      hidden: false,
      textContent: 'static text',
      textUnderline: 'none', //是否加下划线
      fontSize: '13px',
      // preWrap: false,  //是否自动换行
      isBold: false, //是否加粗
      isItalic: false, //是否倾斜
      textColor: '', //字体颜色
      fontFamily: '', //字体
      textWidth: '', //文字宽度
      displayStyle: 'inline-block', //显示方式
      //-------------------
      customClass: '',  //自定义css类名
      //-------------------
      onCreated: '',
      onMounted: '',
      comStyle: {}
    },
  },

  {
    type: 'input',
    alias: '',  //组件别名，可以自定义
    icon: 'text-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      type: 'text',
      defaultValue: '', //默认值
      prepend: '', //前缀
      append: '', //后缀
      contentBackgroundColor: '', //背景色
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      clearable: true,
      showPassword: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      formulaEnabled: false, // 启用计算公式
      formulaType: 'simple', // 计算公式模式
      formula: "", // 计算公式
      formulaValue: "", // 新计算公式
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      minLength: null,
      maxLength: null,
      showWordLimit: false,
      prefixIcon: '',
      suffixIcon: '',
      appendButton: false,
      appendButtonDisabled: false,
      buttonIcon: 'custom-search',
      appendText: false,
      textForAppend: '',
      //-------------------
      onCreated: '',
      onMounted: '',
      onInput: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      onAppendButtonClick: '',
      comStyle: {}
    },
  },

  {
    type: 'textarea',
    icon: 'textarea-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      // rows: 3,
      lineHeight: '', //行高
      minRows: 4, //最小行数
      maxRows: 4, //最大行数
      autosize: false,  //自适应内容高度
      defaultValue: '',
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      contentBackgroundColor: '', //背景色
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      minLength: null,
      maxLength: null,
      showWordLimit: false,
      //-------------------
      onCreated: '',
      onMounted: '',
      onInput: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'number',
    icon: 'number-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: 0,
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      numDisplayFormat: 'number', //计数器显示格式
      controls: true,  //是否显示控制按钮
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      formulaEnabled: false, // 启用计算公式
      formula: "", // 计算公式
      formulaType: 'simple', // 计算公式模式
      formulaValue: "", // 新计算公式
      percentPrecision: 0, // 百分比显示精度
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      min: -100000000000,
      max: 100000000000,
      precision: 0,
      step: 1,
      controlsPosition: 'right',
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'radio',
    icon: 'radio-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: undefined,
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      displayStyle: 'inline',
      buttonStyle: false,
      border: false,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      dsEnabled: false, // 是否使用数据源数据
      dsName: '', // 数据源名称
      dataSetName: '',  //数据集名称
      firstOptionAsDefault: false,  //使用第一个选项作为默认选项
      labelKey: 'label',
      valueKey: 'value',
      lineHeight: '32', //单行行高
      optionValueType: '',
      optionItems: [
        { label: 'radio 1', value: 1 },
        { label: 'radio 2', value: 2 },
        { label: 'radio 3', value: 3 },
      ],
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'checkbox',
    icon: 'checkbox-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: [],
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      displayStyle: 'inline',
      buttonStyle: false,
      border: false,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      dsEnabled: false, // 是否使用数据源数据
      dsName: '', // 数据源名称
      dataSetName: '',  //数据集名称
      labelKey: 'label',
      valueKey: 'value',
      lineHeight: '32', //单行行高
      optionValueType: '',
      optionItems: [
        { label: 'check 1', value: 1 },
        { label: 'check 2', value: 2 },
        { label: 'check 3', value: 3 },
      ],
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select',
    icon: 'select-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: undefined,
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      clearable: true,
      filterable: false,
      allowCreate: false,
      remote: false,
      automaticDropdown: false,  //自动下拉
      multiple: false,
      multipleLimit: 0,
      collapseTags: false,  //对多选折叠已选项
      dsEnabled: false, // 是否使用数据源数据
      dsName: '', // 数据源名称
      dataSetName: '',  //数据集名称
      firstOptionAsDefault: false,  //使用第一个选项作为默认选项
      labelKey: 'label',
      valueKey: 'value',
      optionValueType: '',
      dictType: '', // 数据字典项
      optionItems: [
        // { label: 'select 1', value: 1 },
        // { label: 'select 2', value: 2 },
        // { label: 'select 3', value: 3 },
      ],
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      filterOptionField: '', // 过滤选项字段
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'time',
    icon: 'time-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: null,
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      autoFullWidth: true,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      clearable: true,
      editable: false,
      format: 'HH:mm:ss',  //时间格式
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'time-range',
    icon: 'time-range-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: null,
      startPlaceholder: '',
      endPlaceholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      autoFullWidth: true,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      clearable: true,
      editable: false,
      format: 'HH:mm:ss',  //时间格式
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'date',
    icon: 'date-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      type: 'date',
      defaultValue: null,
      timestampList: null, //时间戳
      placeholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      autoFullWidth: true,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      clearable: true,
      editable: false,
      format: 'YYYY-MM-DD',  //日期显示格式
      valueFormat: 'x',  //日期对象格式-默认时间戳
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      currentDate: false, //启用当前日期
      limitDateRange: false, //是否开启日期限制范围
      limitStartDate: "", //限制开始日期数值
      limitEndDate: "", //限制结束日期数值
      limitStartOptions: "", //限制开始日期选项
      limitEndOptions: "", //限制结束日期选项
      limitStartWidgetName: "", //联动开始日期组件名
      limitEndWidgetName: "", //联动结束日期组件名
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'date-range',
    icon: 'date-range-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      type: 'daterange',
      defaultValue: ["1741104000000","1741190400000"],
      timestampList: null, //时间戳
      alignColumn: false, //上下对齐
      startPlaceholder: '',
      endPlaceholder: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      autoFullWidth: true,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      readonly: false,
      disabled: false,
      hidden: false,
      clearable: true,
      editable: false,
      format: 'YYYY-MM-DD',  //日期显示格式
      valueFormat: 'x',  //日期对象格式-默认时间戳
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'button',
    icon: 'button',
    formItemFlag: false,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      label: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      displayStyle: 'block',
      disabled: false,
      hidden: false,
      type: '',
      plain: false,
      round: false,
      circle: false,
      icon: null,
      //-------------------
      customClass: '',  //自定义css类名
      //-------------------
      onCreated: '',
      onMounted: '',
      onClick: '',
      comStyle: {}
    },
  },

  {
    type: 'divider',
    icon: 'divider',
    formItemFlag: false,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      label: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      direction: 'horizontal',
      contentPosition: 'center',
      hidden: false,
      //-------------------
      customClass: '',  //自定义css类名
      //-------------------
      onCreated: '',
      onMounted: '',
      comStyle: {}
    },
  },
  //

]
// 组织类
export const organizeFileds = [
  {
    type: 'select-person',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '人员选择',
      componentName: '人员选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      clearable: true,
      multiple: false,
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      authorityList: [], //tab页签
      choosePerson: 'person', //选人类型
      organizeType: 'all', //组织类型 unit仅单位、department仅部门、object仅项目、all全部
      displayFormat: 'name', //显示格式 organizePath组织全路径、name当前名称
      labelHidden: false,
      hidden: false, //隐藏
      isAutoImport: false, //是否自动带入人员/组织信息
      isReturnData: true, //是否返回对象数组
      // personnelDepartmentLinkage: false, // 人员、部门联动
      // relatedDepartmentWidgets: '', // 关联部门组件id
      isAutoSortOrder: false, // 是否开启组织/人员自动排序
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      correspondenceConfig: null,
      comStyle: {}
    },
  },
  {
    type: 'select-department',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '组织选择',
      componentName: '组织选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      clearable: true,
      multiple: false,
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      choosePerson: 'organize', //选人类型
      authorityList: ['department'],
      organizeType: 'all', //组织类型 unit仅单位、department仅部门、object仅项目、all全部
      displayFormat: 'name', //显示格式 organizePath组织全路径、name当前名称
      labelHidden: false,
      hidden: false, //隐藏
      isAutoImport: false, //是否自动带入人员/组织信息
      isReturnData: true, //是否返回对象数组
      isAutoSortOrder: false, // 是否开启组织/人员自动排序
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      openLinkageWidget: false, // 开启关联对象
      linkageWidget: '', // 关联对象
      linkageAttribute: '', // 关联属性
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select-group',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '组选择',
      componentName: '组选择',
      clearable: true,
      columnWidth: '200px',
      columnMinWidth: '200px',
      multiple: false,
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      choosePerson: 'all', //选人类型
      authorityList: ['group'],
      labelHidden: false,
      hidden: false, //隐藏
      isReturnData: true, //是否返回对象数组
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select-role',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '角色选择',
      componentName: '角色选择',
      clearable: true,
      multiple: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      choosePerson: 'all', //选人类型
      authorityList: ['role'],
      labelHidden: false,
      hidden: false, //隐藏
      isReturnData: true, //是否返回对象数组
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select-post',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '岗位选择',
      componentName: '岗位选择',
      clearable: true,
      multiple: false,
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      choosePerson: 'all', //选人类型
      authorityList: ['post'],
      labelHidden: false,
      hidden: false, //隐藏
      isReturnData: true, //是否返回对象数组
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select-relativePost',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '相对岗位选择',
      componentName: '相对岗位选择',
      clearable: true,
      multiple: false,
      // filterable: false,
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      positionId: '',
      roleId: '',
      defaultValue: '',
      selectType: 'all',
      choosePerson: 'all', //选人类型
      authorityList: ['relativePost'],
      labelHidden: false,
      hidden: false, //隐藏
      isReturnData: true, //是否返回对象数组
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
]
// 业务类
export const businessFields = [
  {
    type: 'wps-word',
    icon: 'docx-field',
    formItemFlag: true,
    wpsList: [],
    options: {
      aliasName: '',
      name: '',
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: 'wps-word',
      componentName: "wps-word组件",
      labelWidth: undefined,
      labelShow: true,
      showLabel: true,
      layout: 'colFormItem',
      span: 24,
      dragDisabled: false,
      tableName: '',
      regList: [],
      trigger: 'change',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'wps-pdf',
    icon: 'pdf-field',
    formItemFlag: true,
    wpsList: [],
    options: {
      name: '',
      isLayoutFile: false,
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      componentName: "wps-pdf组件",
      labelWidth: undefined,
      labelShow: true,
      showLabel: true,
      layout: 'colFormItem',
      span: 24,
      dragDisabled: false,
      tableName: '',
      regList: [],
      trigger: 'change',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'process-comments',
    icon: 'select-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称<span v-html="label"></span>
      label: '流程意见',
      componentName: '流程意见',
      defaultValue: [],
      sortType: 'createdTime', //排序字段
      sort: '', //排序 desc降序 asc升序
      template: 'default', //展示模板
      // disabled: false,
      // readonly: false,
      // required: false,
      isShowSignature: false,
      isEditProcess: false, //是否可删除数据
      labelHidden: false,
      hidden: false, //隐藏
      timeType: 'YYYY-MM-DD HH:mm:ss', //展示时间格式
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'select-unit',
    icon: 'rich-editor-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      unitSelectIdS: '',
      keyName: '',  //数据键值名称
      label: '抄送组件',
      componentName: '抄送组件',
      defaultValue: '',
      // disabled: false,
      readonly: false,
      required: false,
      placeholder: '请选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'document-number',
    icon: 'number-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '公文文号',
      componentName: "公文文号",
      labelWidth: undefined,
      labelShow: true,
      showLabel: true,
      layout: 'colFormItem',
      span: 24,
      dragDisabled: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      readonly: false,
      required: false,
      tableName: '',
      regList: [],
      trigger: 'change',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {},
      businessRelationProp: {},
    },
  },
  {
    type: 'serial-number',
    icon: 'number-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '流水号',
      componentName: "流水号",
      labelWidth: undefined,
      labelShow: true,
      showLabel: true,
      layout: 'colFormItem',
      span: 24,
      dragDisabled: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      readonly: false,
      tableName: '',
      regList: [],
      trigger: 'change',
      placeholder: '系统自动生成',
      // 绑定流水号
      bindSerialNum: '',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'file-list',
    icon: 'file-upload-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '附件列表',
      labelAlign: '',
      labelWidth: null,
      defaultValue: [],
      labelHidden: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      isUpload: true,
      isDeleted: true,
      isDownload: true,
      isRename: true,
      isPreview: true,
      hidden: false,
      required: false,
      requiredHint: '',
      customRule: '',
      customRuleHint: '',
      //-------------------
      showFormType: 'form',
      multipleSelect: false,
      showFileList: true,
      morePermissions: {
        isUpload: "上传",
        isDeleted: "删除",
        isDownload: "下载"
      },
      limit: 3,
      fileMaxSize: 2048, //MB
      fileTypes: ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'txt'],
      limitTypes: ["jsp", "exe", "sh", "tmp"], // 限制文件类型
      //headers: [],
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onBeforeUpload: '',
      onUploadSuccess: '',
      onUploadError: '',
      onFileRemove: '',
      onValidate: '',
      comStyle: {}
      //onFileChange: '',
    },

  },
  {
    type: 'checkbox-with-input',
    icon: 'checkbox-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '多选项带输入框',
      componentName: "多选项带输入框",
      labelAlign: '',
      defaultValue: [],
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      displayStyle: 'inline',
      buttonStyle: false,
      border: false,
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      dsEnabled: false, // 是否使用数据源数据
      dsName: '', // 数据源名称
      dataSetName: '',  //数据集名称
      firstOptionAsDefault: false,  //使用第一个选项作为默认选项
      labelKey: 'label',
      valueKey: 'value',
      lineHeight: '32', //单行行高
      optionValueType: '',
      optionItems: [
        { label: 'check 1', value: 1, showInput: false, inputValue: '', inputLength: '',  inputSuffix: '', inputStyle: '' },
        { label: 'check 2', value: 2, showInput: false, inputValue: '', inputLength: '',  inputSuffix: '', inputStyle: '' },
        { label: 'check 3', value: 3, showInput: false, inputValue: '', inputLength: '',  inputSuffix: '', inputStyle: '' }
      ],
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {},
    },
  },
  {
    type: 'select-process',
    icon: 'node-tree',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      keyName: '',  //数据键值名称
      label: '关联流程',
      componentName: '关联流程',
      readonly: false,
      required: false,
      placeholder: '请选择',
      columnWidth: '200px',
      columnMinWidth: '200px',
      positionId: '',
      roleId: '',
      defaultValue: [],
      seachConfig: [
        {
          key: 'exampleTitle',
          label: '流程名称',
          type: 'input',
          value: '',
          props: {
            placeholder: '请输入流程名称',
          }
        },
        {
          key: 'draftUserId',
          label: '创建人',
          type: 'ZHLXCommonSelect',
          value: '',
          props: {
            placeholder: '请输入创建人',
            authorityList: ['department'],
            choosePerson: "person",
            clearable: true,
          }
        },
        {
          key: 'draftDeptId',
          label: '创建部门',
          type: 'ZHLXCommonSelect',
          value: '',
          props: {
            placeholder: '请输入创建部门',
            authorityList: ['department'],
            choosePerson: "organize",
            clearable: true
          }
        },
        {
          key: 'createTime',
          label: '创建时间',
          type: 'date-picker',
          value: '',
          props: {
            valueFormat: 'YYYY-MM-DD',
            placeholder: '请选择创建时间',
            type: 'date'
          }
        },
        {
          key: 'businessCode',
          label: '流程分类',
          type: 'tree-select',
          value: '',
          next: 'templateId',
          options: [],
          props: {
            expandOnClickNode: true,
            checkStrictly: true,
            options: [],
            value: 'code',
            label: 'name',
            children: 'children',
            placeholder: '请选择流程分类',
          }
        },
        {
          key: 'templateId',
          label: '模板选择',
          type: 'select',
          value: '',
          // options: [],
          props: {
            clearable: true,
            valueKey: 'templateId',
            options: [],
            placeholder: '请选择模板',
          }
        },
        {
          key: 'exampleStatus',
          label: '流程状态',
          type: 'select',
          value: '',
          options: [],
          props: {
            clearable: true,
            options: [],
            placeholder: '请选择流程状态',
          }
        },
        {
          key: 'acceptTime',
          label: '接收时间',
          type: 'select',
          value: '',
          options: [],
          props: {
            clearable: true,
            options: [],
            placeholder: '请选择接收时间',
          }
        }
      ],
      labelHidden: false,
      hidden: false, //隐藏
      isReturnData: true, //是否返回对象数组
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  }
]
// 辅助类
export const auxiliaryFields = [
  {
    type: 'user-info',
    icon: 'file-upload-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '用户信息',
      componentName: "用户信息",
      placeholder: "系统自动生成",
      labelWidth: undefined,
      defaultValue: '',
      labelShow: true,
      showLabel: true,
      showType: '', //显示类型
      layout: 'colFormItem',
      span: 24,
      dragDisabled: false,
      readonly: false,
      tableName: '',
      regList: [],
      trigger: 'change',
      labelHidden: false,
      hidden: false, //隐藏
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onRemoteQuery: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },
  {
    type: 'picture-upload',
    icon: 'picture-upload-field',
    formItemFlag: true,
    options: {
      aliasName: '', //配置组件别名
      name: '',
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      labelWidth: null,
      labelHidden: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      customRule: '',
      customRuleHint: '',
      //-------------------
      uploadURL: "DSV['uploadURL']",
      uploadTip: '',
      withCredentials: false,
      multipleSelect: false,
      showFileList: true,
      limit: 3,
      fileMaxSize: 5, //MB
      fileTypes: ['jpg', 'jpeg', 'png'],
      //headers: [],
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onBeforeUpload: '',
      onUploadSuccess: '',
      onUploadError: '',
      onFileRemove: '',
      onValidate: '',
      comStyle: {}
      //onFileChange: '',
    },

  },

  {
    type: 'file-upload',
    icon: 'file-upload-field',
    formItemFlag: true,
    options: {
      aliasName: '',
      name: '',
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      labelWidth: null,
      labelHidden: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      customRule: '',
      customRuleHint: '',
      //-------------------
      uploadURL: "DSV['uploadURL']",
      uploadTip: '',
      withCredentials: false,
      multipleSelect: false,
      showFileList: true,
      limit: 3,
      fileMaxSize: 5, //MB
      fileTypes: ['doc', 'docx', 'xls', 'xlsx'],
      showDownloadLink: true,  //显示下载链接
      filePreviewEnabled: false,  //开启文件预览
      //headers: [],
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onBeforeUpload: '',
      onUploadSuccess: '',
      onUploadError: '',
      onFileRemove: '',
      onValidate: '',
      comStyle: {},
      //onFileChange: '',
      onFilePreview: '',  //文件预览事件
    },
  },

  {
    type: 'rich-editor',
    icon: 'rich-editor-field',
    formItemFlag: true,
    options: {
      name: '',
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      placeholder: '',
      labelWidth: null,
      labelHidden: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      contentHeight: '200px',
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      customRule: '',
      customRuleHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      minLength: null,
      maxLength: null,
      //showWordLimit: false,
      //-------------------
      onCreated: '',
      onMounted: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'cascader',
    icon: 'cascader-field',
    formItemFlag: true,
    options: {
      name: '',
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: undefined,
      placeholder: '',
      size: '',
      labelWidth: null,
      labelHidden: false,
      columnWidth: '200px',
      columnMinWidth: '200px',
      // disabled: false,
      hidden: false,
      readonly: false,
      clearable: true,
      filterable: false,
      multiple: false,
      checkStrictly: false,  //可选择任意一级选项，默认不开启
      showAllLevels: true,  //显示完整路径
      dsEnabled: false, // 是否使用数据源数据
      dsName: '', // 数据源名称
      dataSetName: '',  //数据集名称
      firstOptionAsDefault: false,  //使用第一个选项作为默认选项
      labelKey: 'label',
      valueKey: 'value',
      childrenKey: 'children',
      areaDataEnabled: false,  //是否加载省市区数据
      areaDataType: 0, //0不开启，1加载省市数据，2加载省市区数据
      optionItems: [
        { label: 'select 1', value: 1, children: [{ label: 'child 1', value: 11 }] },
        { label: 'select 2', value: 2 },
        { label: 'select 3', value: 3 },
      ],
      required: false,
      requiredHint: '',
      customRule: '',
      customRuleHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onFocus: '',
      onBlur: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'slot',
    icon: 'slot-field',
    formItemFlag: false,
    options: {
      name: '',
      label: '',
      customClass: '',  //自定义css类名
    }
  },

  {
    type: 'switch',
    icon: 'switch-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: null,
      columnWidth: '200px',
      columnMinWidth: '200px',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      switchWidth: 40,
      activeText: '',
      inactiveText: '',
      activeColor: null,
      inactiveColor: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'rate',
    icon: 'rate-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: null,
      columnWidth: '200px',
      columnMinWidth: '200px',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      max: 5,
      lowThreshold: 2,
      highThreshold: 4,
      allowHalf: false,
      showText: false,
      showScore: false,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'color',
    icon: 'color-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      defaultValue: null,
      columnWidth: '200px',
      columnMinWidth: '200px',
      size: '',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'slider',
    icon: 'slider-field',
    formItemFlag: true,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      keyNameEnabled: false,
      isDocument: false,
      keyName: '',  //数据键值名称
      label: '',
      labelAlign: '',
      columnWidth: '200px',
      columnMinWidth: '200px',
      showStops: true,
      size: '',
      labelWidth: null,
      labelHidden: false,
      labelWrap: false,  //标签超长换行
      // disabled: false,
      hidden: false,
      readonly: false,
      required: false,
      requiredHint: '',
      validation: '',
      validationHint: '',
      //-------------------
      customClass: '',  //自定义css类名
      labelIconClass: null,
      labelIconPosition: 'rear',
      labelTooltip: null,
      min: 0,
      max: 100,
      step: 10,
      range: false,
      //vertical: false,
      height: null,
      //-------------------
      onCreated: '',
      onMounted: '',
      onChange: '',
      onValidate: '',
      comStyle: {}
    },
  },

  {
    type: 'html-text',
    icon: 'html-text',
    formItemFlag: false,
    options: {
      name: '',
      aliasName: '', //配置组件别名
      columnWidth: '200px',
      columnMinWidth: '200px',
      hidden: false,
      htmlContent: '<b>html text</b>',
      //-------------------
      customClass: '',  //自定义css类名
      //-------------------
      onCreated: '',
      onMounted: '',
      comStyle: {}
    },
  },

]

export const advancedFields = [

]

export const customFields = [

]

export const chartContainers = [

]

export const chartWidgets = [

]

export function addContainerWidgetSchema(containerSchema) {
  containers.push(containerSchema)
}

export function addBasicFieldSchema(fieldSchema) {
  basicFields.push(fieldSchema)
}

export function addAdvancedFieldSchema(fieldSchema) {
  advancedFields.push(fieldSchema)
}


export function addOrganizeFiledschema(fieldSchema) {
  organizeFileds.push(fieldSchema)
}

export function addBusinessFieldschema(fieldSchema) {
  businessFields.push(fieldSchema)
}

export function addAuxiliaryFieldschema(fieldSchema) {
  auxiliaryFields.push(fieldSchema)
}

export function addCustomWidgetSchema(widgetSchema) {
  customFields.push(widgetSchema)
}

export function addChartContainerSchema(chartContainerSchema) {
  chartContainers.push(chartContainerSchema)
}

export function addChartSchema(chartSchema) {
  chartWidgets.push(chartSchema)
}
